﻿using DataProcesss;
using Parylene_CVD.DAL;
using Parylene_CVD.DataTransfer;
using Parylene_CVD.Model.DModels;
using Parylene_CVD.Tools;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Parylene_CVD.Model
{
    public class GlobalVariables
    {
        public static string AdminTitle = "管理员";
        public static string SupervisorTitle = "工艺员";
        public static string OperatorTitle = "操作员";
        public static string LoginUserRole = "";
        public static string? CurDeviceName;


        public static ConcurrentDictionary<string, RealTimeData> DeviceRealTimeData = new ConcurrentDictionary<string, RealTimeData>();
        public static List<DeviceWithStatus>? deviceWithStatuses;

        public static WebSocketServer webSocketServer;
        public static void InitGlobalVariables()
        {
            ReadGlobalData.ReadDeviceWithStatuses();
            ReadGlobalData.ReadWebSocketServer();
        }
    }
}
